Optimal. Leaf size=140 \[ \frac{c \tan (e+f x) \log (\cos (e+f x)+1)}{a^2 f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{a f (a \sec (e+f x)+a)^{3/2} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{2 f (a \sec (e+f x)+a)^{5/2} \sqrt{c-c \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.282233, antiderivative size = 140, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {3907, 3911, 31} \[ \frac{c \tan (e+f x) \log (\cos (e+f x)+1)}{a^2 f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{a f (a \sec (e+f x)+a)^{3/2} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{2 f (a \sec (e+f x)+a)^{5/2} \sqrt{c-c \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3907
Rule 3911
Rule 31
Rubi steps
\begin{align*} \int \frac{\sqrt{c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{5/2}} \, dx &=-\frac{c \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2} \sqrt{c-c \sec (e+f x)}}+\frac{\int \frac{\sqrt{c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx}{a}\\ &=-\frac{c \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{a f (a+a \sec (e+f x))^{3/2} \sqrt{c-c \sec (e+f x)}}+\frac{\int \frac{\sqrt{c-c \sec (e+f x)}}{\sqrt{a+a \sec (e+f x)}} \, dx}{a^2}\\ &=-\frac{c \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{a f (a+a \sec (e+f x))^{3/2} \sqrt{c-c \sec (e+f x)}}+\frac{(c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{1}{a+a x} \, dx,x,\cos (e+f x)\right )}{a f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{c \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2} \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x)}{a f (a+a \sec (e+f x))^{3/2} \sqrt{c-c \sec (e+f x)}}+\frac{c \log (1+\cos (e+f x)) \tan (e+f x)}{a^2 f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ \end{align*}
Mathematica [C] time = 0.641076, size = 151, normalized size = 1.08 \[ \frac{i \cot \left (\frac{1}{2} (e+f x)\right ) \sqrt{c-c \sec (e+f x)} \left (6 i \log \left (1+e^{i (e+f x)}\right )+\left (f x+2 i \log \left (1+e^{i (e+f x)}\right )\right ) \cos (2 (e+f x))+4 \left (2 i \log \left (1+e^{i (e+f x)}\right )+f x+i\right ) \cos (e+f x)+3 f x+3 i\right )}{2 a^2 f (\cos (e+f x)+1)^2 \sqrt{a (\sec (e+f x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.291, size = 152, normalized size = 1.1 \begin{align*}{\frac{ \left ( -1+\cos \left ( fx+e \right ) \right ) ^{2}\cos \left ( fx+e \right ) }{8\,f{a}^{3} \left ( \sin \left ( fx+e \right ) \right ) ^{5}} \left ( 8\,\ln \left ( 2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}+7\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}+16\,\cos \left ( fx+e \right ) \ln \left ( 2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) -2\,\cos \left ( fx+e \right ) +8\,\ln \left ( 2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) -5 \right ) \sqrt{{\frac{c \left ( -1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.43413, size = 1573, normalized size = 11.24 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{a \sec \left (f x + e\right ) + a} \sqrt{-c \sec \left (f x + e\right ) + c}}{a^{3} \sec \left (f x + e\right )^{3} + 3 \, a^{3} \sec \left (f x + e\right )^{2} + 3 \, a^{3} \sec \left (f x + e\right ) + a^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 2.40347, size = 215, normalized size = 1.54 \begin{align*} \frac{\sqrt{2}{\left (\frac{8 \, \sqrt{2} \sqrt{-a c} c \log \left ({\left | c \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + c \right |}\right )}{a^{3}{\left | c \right |}} + \frac{\sqrt{2}{\left (c \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - c\right )}^{2} \sqrt{-a c} a^{3} c{\left | c \right |} - 4 \, \sqrt{2}{\left (c \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - c\right )} \sqrt{-a c} a^{3} c^{2}{\left | c \right |}}{a^{6} c^{4}}\right )} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right ) \mathrm{sgn}\left (\cos \left (f x + e\right )\right )}{16 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]